package com.hckjsec.website.domain.view;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;

import java.util.Date;

public class WebSiteNewsData {
    //id
    private Long id;
    //类型
    private String type;
    //标题
    private String title;
    //图片
    private String img;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

    public WebSiteNewsData() {
    }

    public WebSiteNewsData(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
